﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="QuanLyDoanhNghiep.aspx.cs"
    Inherits="Cucre.WebForm16" Title="MUARE.VN - Quản lý doanh nghiệp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .r
        {
            height: 35px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="page_content">
        <div style="padding-left: 6px;">
            <div class="clear">
            </div>
            <div class="br">
            </div>
            <div class="content_home">
                <%-- vung thể hiện menu --%>
                <div class="ch_1 font">
                    <div class="l">
                        <div class="ll">
                        </div>
                        <div class="lc">
                            <ul id="tab_menu">
                                <li id="tabmnu_1"><a href="QuanLy.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    Tin Khuyến Mãi&nbsp;</span><span class="tab_mnu_r"> </span></a></li>
                                <li id="tabmnu_4"><a href="quanlydondathang.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">Đơn Đặt Hàng&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="tabmnu_2"><span class="tab_mnu_r"></span></li>
                                <li id="tabmnu_3"><a href="QuanLyDoanhNghiep.aspx"><span class="tab_mnu_l_curent"></span>
                                    <span class="tab_mnu_c_curent">Doanh Nghiệp&nbsp;</span> <span class="tab_mnu_r_curent">
                                    </span></a></li>
                                <li id="Li1"><a href="quanlythanhvien.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">THÀNH VIÊN&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="Li2"><a href="QuanLyComment.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    COMMENT&nbsp;</span> <span class="tab_mnu_r"></span></a></li>
                                <li id="Li3"><a href="baocaothongke.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    THỐNG KÊ&nbsp;</span> <span class="tab_mnu_r"></span></a></li>
                            </ul>
                        </div>
                        <div class="lr">
                        </div>
                    </div>
                    <div class="r">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <%-- hết vùng thể hiện menu --%>
                <%-- vùng làm việc --%>
                <div class="ch_2">
                    <h2 align="center">
                        TRANG QUẢN LÝ DOANH NGHIỆP</h2>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                            </asp:ToolkitScriptManager>
                            <div style="height: 36px" align="center">
                                <asp:Table ID="Table1" runat="server">
                                    <asp:TableRow>
                                        <asp:TableCell>TÌM KIẾM DOANH NGHIỆP : 
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="txtSearchDoanhNghiep" runat="server" CssClass="text_1 form_text"
                                                Width="200px"></asp:TextBox>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:Button ID="btSearchDoanhNghiep" runat="server" Text="Search" BorderStyle="Solid"
                                                BackColor="#DEDFFE" Height="25px" Width="80px" OnClick="btSearchDoanhNghiep_Click" />
                                        </asp:TableCell>
                                    </asp:TableRow>
                                </asp:Table>
                            </div>
                            <div id="working_area">
                                <h3>
                                    Danh Sách Các Doanh Nghiệp :</h3>
                                <div id="GridView1" align="center">
                                    <asp:GridView ID="DSDoanhNghiep_GridView" runat="server" PageSize="10" AutoGenerateColumns="False"
                                        AllowPaging="true" BorderStyle="Groove" OnPageIndexChanging="DSDoanhNghiep_GridView_PageIndexChanging"
                                        OnRowDeleting="DSDoanhNghiep_GridView_RowDeleting" OnSelectedIndexChanging="DSDoanhNghiep_GridView_SelectedIndexChanging">
                                        <PagerStyle Font-Underline="True" Font-Bold="true" />
                                        <SelectedRowStyle BackColor="#DEDFFE" Font-Bold="true" ForeColor="#333333" Height="25px" />
                                        <HeaderStyle BorderStyle="Groove" BackColor="#5D7B9D" Font-Bold="true" ForeColor="White"
                                            Height="25px" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="20px" />
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="CheckDoanhNghiep" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="IDPROVIDER" HeaderText="ID" ReadOnly="True" SortExpression="IDPROVIDER" />
                                            <asp:BoundField DataField="COMPANY_NAME" HeaderText="Name" ReadOnly="True" SortExpression="COMPANY_NAME" />
                                            <asp:BoundField DataField="EMAIL" HeaderText="Email" ReadOnly="True" SortExpression="EMAIL" />
                                            <asp:BoundField DataField="PHONE" HeaderText="Number Phone" ReadOnly="True" SortExpression="PHONE" />
                                            <asp:BoundField DataField="ADDRESS" HeaderText="Address" ReadOnly="True" SortExpression="ADDRESS" />
                                            <asp:CommandField SelectText="View Detail" ShowSelectButton="true" ItemStyle-ForeColor="Blue"
                                                ItemStyle-Font-Underline="True" />
                                            <asp:CommandField DeleteText="Delete" ShowDeleteButton="true" ItemStyle-ForeColor="Blue"
                                                ItemStyle-Font-Underline="True" />
                                        </Columns>
                                    </asp:GridView>
                                </div>
                                <div style="height: 15px">
                                </div>
                                <div style="height: 15px" align="right">
                                    <asp:LinkButton ID="ShowAll" runat="server" Text="Show Tất Cả Doanh Nghiệp" Font-Underline="True"
                                        ForeColor="Blue" OnClick="ShowAll_Click"></asp:LinkButton>
                                </div>
                                <div class="br">
                                    <hr />
                                </div>
                                <div align="center">
                                    <h3>
                                        Thông Tin Chi Tiết Doanh Nghiệp</h3>
                                </div>
                                <%-- VUNG CHI TIET DOANH NGHIEP --%>
                                <div align="center">
                                    <div style="width: 600px" align="center">
                                        <div style="background-color: #DEDFFE" align="center">
                                            <div style="height: 20px">
                                            </div>
                                            <div align="center">
                                                Company Name :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <asp:TextBox ID="Company_Name_tb" runat="server" BorderColor="Silver" Width="300px"
                                                    BorderStyle="Groove"></asp:TextBox>
                                            </div>
                                            <div style="height: 10px">
                                            </div>
                                            <div align="center">
                                                User Login &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <asp:TextBox ID="UserLogin_tb" runat="server" BorderColor="Silver" Width="300px"
                                                    BorderStyle="Groove"></asp:TextBox>
                                            </div>
                                            <div style="height: 10px">
                                            </div>
                                            <div align="center">
                                                Email &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <asp:TextBox ID="Email_tb" runat="server" BorderColor="Silver" Width="300px" BorderStyle="Groove"></asp:TextBox>
                                            </div>
                                            <div style="height: 10px">
                                            </div>
                                            <div align="center">
                                                Number Phone &nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <asp:TextBox ID="NumberPhone_tb" runat="server" BorderColor="Silver" Width="300px"
                                                    BorderStyle="Groove"></asp:TextBox>
                                            </div>
                                            <div style="height: 10px">
                                            </div>
                                            <div align="center">
                                                Address &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <asp:TextBox ID="Adress_tb" runat="server" BorderColor="Silver" Width="300px" BorderStyle="Groove"></asp:TextBox>
                                            </div>
                                            <div style="height: 10px">
                                            </div>
                                            <div align="center">
                                                Introduce about Company :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <br />
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                &nbsp;&nbsp;&nbsp;&nbsp;<span><asp:TextBox ID="Introduce_tb" runat="server" Height="100px"
                                                    Width="350px" BorderColor="Silver" BorderStyle="Groove" TextMode="MultiLine"></asp:TextBox></span>
                                            </div>
                                            <div style="height: 30px">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div style="height: 30px">
                                </div>
                                <div align="center">
                                    <asp:Button ID="ThemMoi_bt" Text="Thêm Mới" Width="100px" runat="server" Height="30px"
                                        BorderStyle="Outset" BackColor="#DEDFFE" OnClick="ThemMoi_bt_Click" />
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="CapNhat_bt" Text="Cập Nhật" Width="100px" Height="30px" runat="server"
                                        BorderStyle="Outset" BackColor="#DEDFFE" OnClick="CapNhat_bt_Click" />
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="Xoa_bt" Text="Xóa" Width="100px" Height="30px" runat="server" BorderStyle="Outset"
                                        BackColor="#DEDFFE" OnClientClick="return confirm('Bạn Có Chắc Chắn Muốn Xóa Doanh Nghiệp Này Ra Khỏi hệ thống Này?')"
                                        OnClick="Xoa_bt_Click" />
                                </div>
                            </div>
                            <%-- hết vùng làm việc --%>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <%--đường kẻ ngang phía dưới --%>
                <div style="background: url(images/temp2_3.gif) no-repeat left bottom; padding-left: 18px;
                    height: 11px;">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
